//
//  UILabel+Extension.swift
//  xlwb-swift
//
//  Created by 王世清 on 16/4/19.
//  Copyright © 2016年 wsq. All rights reserved.
//

import UIKit

extension UILabel {
    
    /// 抽取label便利构造函数
    ///
    /// - parameter title:    title
    /// - parameter color:    titleColor
    /// - parameter fontSize: fontSize
    ///
    /// - returns: UILabel
    convenience init(title: String, color: UIColor = UIColor.darkGrayColor() , fontSize: CGFloat = 14) {
        self.init()
        
        text = title
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
    
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
    }
    
}
